<?php
	$date = date('m');
	if($date == 1){
		$get_date = "Januari";
	}elseif($date == 2){
		$get_date = "Februari";
	}elseif($date == 3){
		$get_date = "Maret";
	}elseif($date == 4){
		$get_date = "April";
	}elseif($date == 5){
		$get_date = "Mei";
	}elseif($date == 6){
		$get_date = "Juni";
	}elseif($date == 7){
		$get_date = "Juli";
	}elseif($date == 8){
		$get_date = "Agustus";
	}elseif($date == 9){
		$get_date = "September";
	}elseif($date == 10){
		$get_date = "Oktober";
	}elseif($date == 11){
		$get_date = "November";
	}elseif($date == 12){
		$get_date = "Desember";
	}
?>
<?php
session_start();
if(!$this->session->userdata('username')){
	redirect('login');
}else{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Ambon GIS</title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
    <link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css' />

    <!-- Core stylesheets do not remove -->
    <link id="bootstrap" href="<?php echo $this->config->item('css_path');?>bootstrap/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo $this->config->item('css_path');?>bootstrap/bootstrap-theme.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo $this->config->item('css_path');?>supr-theme/jquery.ui.supr.css" rel="stylesheet" type="text/css"/>
    <link href="<?php echo $this->config->item('css_path');?>icons.css" rel="stylesheet" type="text/css" />

    <!-- Plugins stylesheets -->
    <link href="<?php echo $this->config->item('plugin_path');?>misc/qtip/jquery.qtip.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo $this->config->item('plugin_path');?>misc/search/tipuesearch.css" type="text/css" rel="stylesheet" />
    <link href="<?php echo $this->config->item('plugin_path');?>forms/uniform/uniform.default.css" type="text/css" rel="stylesheet" />
    <link href="<?php echo $this->config->item('plugin_path');?>forms/select/select2.css" type="text/css" rel="stylesheet" />
	<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>assets/popup/jquery.fancybox.css" media="screen" />

    <!-- Main stylesheets -->
    <link href="<?php echo $this->config->item('css_path');?>main.css" rel="stylesheet" type="text/css" />

    <!-- Custom stylesheets ( Put your own changes here ) -->
    <link href="<?php echo $this->config->item('css_path');?>custom.css" rel="stylesheet" type="text/css" />


    <!-- Load modernizr first -->
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>libs/modernizr.js"></script>
    <!-- Le javascript
    ================================================== -->
    <!-- Important plugins put in all pages -->
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
    
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>jquery-migrate-1.2.1.min.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>bootstrap/bootstrap.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>jquery.mousewheel.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>libs/jRespond.min.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>supr-theme/jquery-ui-timepicker-addon.js"></script>
	
	<script type="text/javascript" src="<?php echo base_url()?>assets/popup/jquery.fancybox.js"></script>

    <!-- Charts plugins -->
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>charts/sparkline/jquery.sparkline.min.js"></script><!-- Sparkline plugin -->

    <!-- Misc plugins -->
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>misc/qtip/jquery.qtip.min.js"></script><!-- Custom tooltip plugin -->
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>misc/totop/jquery.ui.totop.min.js"></script> <!-- Back to top plugin -->

    <!-- Search plugin -->
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>misc/search/tipuesearch_set.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>misc/search/tipuesearch_data.js"></script><!-- JSON for searched results -->
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>misc/search/tipuesearch.js"></script>

    <!-- Form plugins -->
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>forms/elastic/jquery.elastic.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>forms/uniform/jquery.uniform.min.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>forms/validate/jquery.validate.min.js"></script>
    <script type="text/javascript" src="<?php echo $this->config->item('plugin_path');?>forms/select/select2.min.js"></script>

    <!-- Init plugins -->
    <script type="text/javascript" src="<?php echo $this->config->item('js_path');?>main.js"></script><!-- Core js functions -->

	<script>
		function date_time(id)
		{
				date = new Date;
				h = date.getHours();
				if(h<10)
				{
						h = "0"+h;
				}
				m = date.getMinutes();
				if(m<10)
				{
						m = "0"+m;
				}
				s = date.getSeconds();
				if(s<10)
				{
						s = "0"+s;
				}
				result = h+':'+m+':'+s;
				document.getElementById(id).innerHTML = result;
				setTimeout('date_time("'+id+'");','1000');
				return true;
		}
	</script>
    </head>

    <body>

    <div id="header">
        <nav class="navbar navbar-default" role="navigation">
			<div class="navbar-header">
                <a title="Waktu & Tanggal Sekarang" class="navbar-brand" href="#"><span id="date_time"></span><script type="text/javascript">window.onload = date_time('date_time');</script><span class="slogan"><?php echo date(' d ').$get_date.date(' Y');?></span></a>
            </div>
			<a style="margin-left: 350px;" class="navbar-left" href="#"><img src="<?php echo base_url()?>assets/logo.png" width="24%" alt="Logo Maluku" title="Logo Maluku"><span class="slogan"></span></a>
			<center>
			</center>
            <div class="collapse navbar-collapse navbar-ex1-collapse">
                <ul class="nav navbar-right usernav">
                    <li><a href="#"><span class="icon16 icomoon-icon-user-3"></span><span class="txt"><?php echo "<b>Hi, </b>".$this->session->userdata('username')."  !";?></span></a></li>
					<li><a href="<?php echo base_url();?>index.php/login/logout"><span class="icon16 icomoon-icon-exit"></span><span class="txt"> Logout</span></a></li>
                </ul>
                    
            </div>
        </nav>
    </div>


    <div id="wrapper">
            <!--Responsive navigation button-->
            <div class="resBtn">
                <a href="#"><span class="icon16 minia-icon-list-3"></span></a>
            </div>

            <!--Sidebar collapse button-->
            <div class="collapseBtn leftbar">
                 <a href="#" class="tipR" title="Hide sidebar"><span class="icon12 minia-icon-layout"></span></a>
            </div>

            <!--Sidebar background-->
            <div id="sidebarbg"></div>

            <!--Sidebar content-->
            <div id="sidebar">
                <div class="shortcuts">
                    <ul>
						<!--<li><a href="<?php echo base_url();?>" class="tip" title="Beranda"><span class="icon24 icomoon-icon-home-3"></span></a></li>-->
						<li><a href="<?php echo site_url('ruas_jalan/grid_rj')?>" class="tip" title="Tabel Ruas Jalan"><span class="icon24 icomoon-icon-table-2"></span></a></li>
						<li><a href="<?php echo site_url('master/form_user')?>" class="tip" title="Ubah Password"><span class="icon24 entypo-icon-settings"></span></a></li>
                    </ul>
                </div><!-- End search -->

                <div class="sidenav">
                    <?php echo $this->load->view("menu")?>
                </div><!-- End sidenav -->
            </div><!-- End #sidebar -->

            <!--Body content-->
            <div id="content" class="clearfix">
                <div class="contentwrapper"><!--Content wrapper-->
					<div class="heading">
                        <h3><?php echo $judul?></h3>
						
						<ul class="breadcrumb">
							<li>Halaman:</li>
							<li>
								<a href="#" class="tip" title="back to dashboard">
									<span class="icon16 icomoon-icon-screen-2"></span>
								</a> 
								<span class="divider">
									<span class="icon16 icomoon-icon-arrow-right-3"></span>
								</span>
							</li>
							<li class="active"><?php echo $judul?></li>
						</ul>

                    </div><!-- End .heading-->
					<?php echo $content;?>
                </div><!-- End contentwrapper -->
            </div><!-- End #content -->

    </div><!-- End #wrapper -->

    </body>
</html>
<?php }?>